package com.xjrh.traintravel.collector.netty.command.front;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;
import java.util.List;

/**
 * 前置-版本信息获取-响应数据
 *
 * @author snps
 * @create 2022-02-07 11:22
 * @describe
 **/
public class FrontData extends BaseCommand implements Serializable {

    private static final long serialVersionUID = 5676541032042197906L;


    /**
     * 前置个数
     */
    private int frontNum;

    /**
     * 前置信息
     */
    private List<FrontInfo> frontInfos;


    /*****************************************
     * Getter and Setter
     */
    public int getFrontNum() {
        return frontNum;
    }

    public void setFrontNum(int frontNum) {
        this.frontNum = frontNum;
    }

    public List<FrontInfo> getFrontInfos() {
        return frontInfos;
    }

    public void setFrontInfos(List<FrontInfo> frontInfos) {
        this.frontInfos = frontInfos;
    }


    @Override
    public String toString() {
        return "FrontApplyData{" +
                "frontNum=" + frontNum +
                ", frontInfos=" + frontInfos +
                '}';
    }

}